<template>
	<view class="container">
		<uni-section class="mb-10" title="私密相册" type="line">
			<Album :list="imageList" class="album"></Album>
		</uni-section>
	</view>
</template>

<script>
	import Album from '../PersonalDetail/album.vue';
	import {
		url,
		request
	} from '@/service/api.js'
	export default {
		data() {
			return {
				imageList: [],
				uid: ''
			};
		},
		components: {
			Album
		},
		onLoad(param) {
			this.uid = param.uid||''
		},
		mounted() {
			this.init()
		},
		methods: {
			init() {
				request(url.getAlbum, 'GET', {
					page: 1,
					limit: 1000,
					uid: this.uid
				}).then(res => {
					console.log(res)
					if (res.status === 200) {
						this.imageList = res.data
					}
				})
			}
		}
	}
</script>
<style lang="less">
	* {
		box-sizing: border-box;
	}

	.container {
		padding: 10px;
	}

	uni-page-body {
		background-color: #fff !important;
	}
</style>
